package com.cai310.lottery.common.keno;

import java.math.BigDecimal;

public enum ZoomType {
	original("原始金额",1D),
	/** 状态:当前期 */
	reduce10("10倍缩小",0.1D);
	
	private String typeName;
	
	private Double zoom;
	private ZoomType(String typeName,Double zoom) {
		this.typeName = typeName;
		this.zoom = zoom;
	}
	
	public Double getZoom() {
		return zoom;
	}

	public void setZoom(Double zoom) {
		this.zoom = zoom;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public BigDecimal getZoomMoney(BigDecimal money){
		return money.multiply(BigDecimal.valueOf(this.zoom));
	}
	public BigDecimal getZoomMoney(Integer cost){
		return BigDecimal.valueOf(this.zoom).multiply(BigDecimal.valueOf(cost));
	}
	
}
